<template>
  <div class='product-params'>
    <!--product-params-->
    <table border="1">
      <tr v-for="item in tableData" >
        <td>{{item.name}}</td>
        <td>{{item.info}}</td>
      </tr>
    </table>


  </div>

</template>
<script>
export default {
  components: {},
  name: "",
  data() {
    return {

        tableData: [

        ]
    };
  },
  methods: {
      getProductParams(id){
          _g.apiPost('product/productParams',{id:id}).then(res=>{
              if(res.status==0){
                  this.$set(this,"tableData",res.data)
              }else {
                  _g.toMessage(res)
              }
          })
      }
  },
  created() {
      let id = this.$router.history.current.query.id
      this.getProductParams(id)
  }
};
</script>
<style lang="scss" scoped>
.product-params {
  padding: 20px 0;

}
</style>